
<script language="javascript">
function initializeBody(){
	try {
		
	
      	// Seteo de proyecciones
		projection = new OpenLayers.Projection("EPSG:900913"); 
       	displayProjection = new OpenLayers.Projection("EPSG:4326");

		mapOptions = {
                projection: projection,
                displayProjection: displayProjection,
                units: "km",
                maxExtent: new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508.34)
        };
		
        map = new OpenLayers.Map('map_canvas', mapOptions);
		 	
           	var yahoo = new OpenLayers.Layer.Yahoo(
                "Yahoo Street",
                {'sphericalMercator': true}
            );
            var yahoosat = new OpenLayers.Layer.Yahoo(
                "Yahoo Satellite",
                {'type': YAHOO_MAP_SAT, 'sphericalMercator': true}
            );
            var yahoohyb = new OpenLayers.Layer.Yahoo(
                "Yahoo Hybrid",
                {'type': YAHOO_MAP_HYB, 'sphericalMercator': true}
            );
 
 						
            map.addLayers([yahoo, yahoosat, yahoohyb]);
		
		//selector de tipo de mapa
		var selectMapMenu = new OpenLayers.Control.SelectSwitcher({buttonText:'Mapa', width:'100px'});
		selectMapMenu.addItem('Calles', function(){map.setBaseLayer(yahoo);});
		selectMapMenu.addItem('Satelital', function(){map.setBaseLayer(yahoosat);});
		selectMapMenu.addItem('Hibrido', function(){map.setBaseLayer(yahoohyb);});			
		map.addControl(selectMapMenu);		
	} catch(e) {
		URL = "map.php?v=" + '<?=$_GET['v']?>' + "&cuenta=" + '<?=$_GET['v']?>' + "&cuentaSelectSegui=" + '<?=$_GET['v']?>' +"&y=" + '<?=$_GET['y']?>' + "&x=" + '<?=$_GET['x']?>' + "&mapType=bykom";
      		window.location = URL;
	}		
}
		
function unloadBody(){
		
		}
</script>